\hypertarget{classdev_1_1base_1_1_exception}{}\section{dev\+:\+:base\+:\+:Exception Class Reference}
\label{classdev_1_1base_1_1_exception}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}


{\ttfamily \#include $<$Exception.\+hpp$>$}

Inheritance diagram for dev\+:\+:base\+:\+:Exception\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classdev_1_1base_1_1_exception}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1base_1_1_exception_ac96c45c4e7e820e77b2751f7c129f787}{}{\bfseries Exception} (int \hyperlink{classdev_1_1base_1_1_exception_a1a8a1cdcd3c9c654a8c0d93d5a1d0b64}{code})\label{classdev_1_1base_1_1_exception_ac96c45c4e7e820e77b2751f7c129f787}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a3591c106017ebc3027d86ae1205dc217}{}{\bfseries Exception} (const char $\ast$const error)\label{classdev_1_1base_1_1_exception_a3591c106017ebc3027d86ae1205dc217}

\item 
\hypertarget{classdev_1_1base_1_1_exception_af4292636f8979057a74ecf7e104626c8}{}{\bfseries Exception} (int \hyperlink{classdev_1_1base_1_1_exception_a1a8a1cdcd3c9c654a8c0d93d5a1d0b64}{code}, const char $\ast$const error)\label{classdev_1_1base_1_1_exception_af4292636f8979057a74ecf7e104626c8}

\item 
\hypertarget{classdev_1_1base_1_1_exception_afeb97c421adf460c70903ec07b12fcdc}{}{\bfseries Exception} (const \hyperlink{classdev_1_1base_1_1_exception}{Exception} \&exception)\label{classdev_1_1base_1_1_exception_afeb97c421adf460c70903ec07b12fcdc}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a4d43e7b3cdefd8d28ae758171601b818}{}void {\bfseries init} (const char $\ast$\hyperlink{classdev_1_1base_1_1_exception_ad000efdccd0527dbbccc322cb7cb9b75}{file}, const char $\ast$\hyperlink{classdev_1_1base_1_1_exception_a1b92cc013a369d214fcabeb77615eba6}{function}, int \hyperlink{classdev_1_1base_1_1_exception_a6b0e6627e81c5e3ef4a10e56fcf3d7e6}{line})\label{classdev_1_1base_1_1_exception_a4d43e7b3cdefd8d28ae758171601b818}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a4e51c41b6a69e71d771bedd775aa0807}{}\hyperlink{classdev_1_1base_1_1_exception}{Exception} \& {\bfseries operator=} (const \hyperlink{classdev_1_1base_1_1_exception}{Exception} \&exception)\label{classdev_1_1base_1_1_exception_a4e51c41b6a69e71d771bedd775aa0807}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a11996ad7bec961319a754d5e07d6bebf}{}virtual const char $\ast$ {\bfseries what} (void) const D\+E\+V\+\_\+\+N\+O\+E\+X\+C\+E\+P\+T\label{classdev_1_1base_1_1_exception_a11996ad7bec961319a754d5e07d6bebf}

\item 
int \hyperlink{classdev_1_1base_1_1_exception_a1a8a1cdcd3c9c654a8c0d93d5a1d0b64}{code} (void) const 
\begin{DoxyCompactList}\small\item\em 获取错误码 \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{classdev_1_1base_1_1_exception_ad000efdccd0527dbbccc322cb7cb9b75}{file} (void) const 
\begin{DoxyCompactList}\small\item\em 获取抛出异常的文件名 \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{classdev_1_1base_1_1_exception_a1b92cc013a369d214fcabeb77615eba6}{function} (void) const 
\begin{DoxyCompactList}\small\item\em 获取抛出异常的函数名 \end{DoxyCompactList}\item 
int \hyperlink{classdev_1_1base_1_1_exception_a6b0e6627e81c5e3ef4a10e56fcf3d7e6}{line} (void) const 
\begin{DoxyCompactList}\small\item\em 获取抛出异常的行号 \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{classdev_1_1base_1_1_exception_a2768bdb011eeb0acf7edf442dff70424}{stacktrace} (void)
\begin{DoxyCompactList}\small\item\em 获取调用堆栈 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1base_1_1_exception_aa5d320a9b8aeb1e1d714d9360f27336f}{}int {\bfseries code\+\_\+}\label{classdev_1_1base_1_1_exception_aa5d320a9b8aeb1e1d714d9360f27336f}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a4a2fce2f7c6c66a5692da9c7454cf0ae}{}std\+::string {\bfseries error\+\_\+}\label{classdev_1_1base_1_1_exception_a4a2fce2f7c6c66a5692da9c7454cf0ae}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a51b67fde302b5d17233439d167da69cd}{}std\+::string {\bfseries stackstrace\+\_\+}\label{classdev_1_1base_1_1_exception_a51b67fde302b5d17233439d167da69cd}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a7a53cc0c46be5f5d7286a83518862d0e}{}const char $\ast$ {\bfseries file\+\_\+}\label{classdev_1_1base_1_1_exception_a7a53cc0c46be5f5d7286a83518862d0e}

\item 
\hypertarget{classdev_1_1base_1_1_exception_a199fb56acfeebaf4ac2ffe1a0f502c0b}{}const char $\ast$ {\bfseries function\+\_\+}\label{classdev_1_1base_1_1_exception_a199fb56acfeebaf4ac2ffe1a0f502c0b}

\item 
\hypertarget{classdev_1_1base_1_1_exception_ab50242c14b7c59d48ef3c53db5cbd72d}{}int {\bfseries line\+\_\+}\label{classdev_1_1base_1_1_exception_ab50242c14b7c59d48ef3c53db5cbd72d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
异常类 

\subsection{Member Function Documentation}
\hypertarget{classdev_1_1base_1_1_exception_a1a8a1cdcd3c9c654a8c0d93d5a1d0b64}{}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}!code@{code}}
\index{code@{code}!dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}
\subsubsection[{code(void) const }]{\setlength{\rightskip}{0pt plus 5cm}int dev\+::base\+::\+Exception\+::code (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1base_1_1_exception_a1a8a1cdcd3c9c654a8c0d93d5a1d0b64}


获取错误码 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\hypertarget{classdev_1_1base_1_1_exception_ad000efdccd0527dbbccc322cb7cb9b75}{}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}!file@{file}}
\index{file@{file}!dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}
\subsubsection[{file(void) const }]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ dev\+::base\+::\+Exception\+::file (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1base_1_1_exception_ad000efdccd0527dbbccc322cb7cb9b75}


获取抛出异常的文件名 

\begin{DoxyReturn}{Returns}
const char$\ast$ 
\end{DoxyReturn}
\hypertarget{classdev_1_1base_1_1_exception_a1b92cc013a369d214fcabeb77615eba6}{}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}!function@{function}}
\index{function@{function}!dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}
\subsubsection[{function(void) const }]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ dev\+::base\+::\+Exception\+::function (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1base_1_1_exception_a1b92cc013a369d214fcabeb77615eba6}


获取抛出异常的函数名 

\begin{DoxyReturn}{Returns}
const char$\ast$ 
\end{DoxyReturn}
\hypertarget{classdev_1_1base_1_1_exception_a6b0e6627e81c5e3ef4a10e56fcf3d7e6}{}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}!line@{line}}
\index{line@{line}!dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}
\subsubsection[{line(void) const }]{\setlength{\rightskip}{0pt plus 5cm}int dev\+::base\+::\+Exception\+::line (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1base_1_1_exception_a6b0e6627e81c5e3ef4a10e56fcf3d7e6}


获取抛出异常的行号 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\hypertarget{classdev_1_1base_1_1_exception_a2768bdb011eeb0acf7edf442dff70424}{}\index{dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}!stacktrace@{stacktrace}}
\index{stacktrace@{stacktrace}!dev\+::base\+::\+Exception@{dev\+::base\+::\+Exception}}
\subsubsection[{stacktrace(void)}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ dev\+::base\+::\+Exception\+::stacktrace (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1base_1_1_exception_a2768bdb011eeb0acf7edf442dff70424}


获取调用堆栈 

\begin{DoxyReturn}{Returns}
const char$\ast$ 
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
dev/dev/base/Exception.\+hpp\item 
dev/src/base/Exception.\+cpp\end{DoxyCompactItemize}
